<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="lib/jquery-3.4.1.js"> </script>
    <script src="lib/http.js"></script>
</head>

<body>
    <script>
        var url = "http://localhost:8080/"
        http(url,handleData);
        console.log(res)

        function handleData(res) {
            for (var key in res) {
                var p = document.createElement("p");
                p.innerHTML = res[key];
                document.body.append(p)
            }
        }
    </script>
</body>

</html>